.learn__screen-overlay {
  @extend %fullscreen-mask;

  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
  display: grid;
}

.learn__screen {
  @extend %popup-shadow, %box-radius;

  margin: auto;
  background-color: $c-bg-box;
  width: 350px;
  overflow: hidden;
  text-align: center;
  padding-top: 36px;
  max-height: 100%;
  overflow: auto;

  @media (prefers-reduced-motion: no-preference) {
    > :nth-child(1) {
      animation: slideIn 1s cubic-bezier(0.37, 0.82, 0.2, 1);
    }

    > :nth-child(2) {
      animation: slideIn 1.5s cubic-bezier(0.37, 0.82, 0.2, 1);
    }

    > :nth-child(3) {
      animation: slideIn 2s cubic-bezier(0.37, 0.82, 0.2, 1);
    }

    > :nth-child(4) {
      animation: slideIn 2.5s cubic-bezier(0.37, 0.82, 0.2, 1);
    }

    > :nth-child(5) {
      animation: slideIn 3s cubic-bezier(0.37, 0.82, 0.2, 1);
    }
  }

  .stars {
    margin-bottom: 20px;
  }

  @keyframes star-appear {
    0% {
      filter: saturate(1);
      opacity: 0.5;
      transform: scale(0) rotate(-360deg);
    }

    85% {
      filter: saturate(1);
      opacity: 1;
      transform: scale(1.3) rotate(10deg);
    }

    100% {
      filter: saturate(1);
      opacity: 1;
      transform: scale(1) rotate(0);
    }
  }

  .stars .star-wrap {
    display: inline-block;
    width: 55px;
    height: 55px;
    margin: 0 5px;
    position: relative;
  }

  .stars .star-wrap::before {
    position: absolute;
    top: 5px;
    left: 5px;
    display: block;
    width: 45px;
    height: 45px;
    content: '';
    background-image: url(../images/learn/star.png);
    background-size: cover;
    filter: saturate(0);
    opacity: 0.2;
  }

  .stars .star {
    display: inline-block;
    background-image: url(../images/learn/star.png);
    background-size: cover;
    width: 55px;
    height: 55px;
    opacity: 0;
    animation: star-appear 2.5s ease-in-out;
    animation-delay: 0.1s;
    animation-fill-mode: forwards;
  }

  @media (prefers-reduced-motion: reduce) {
    .stars .star {
      opacity: 1;
      animation: none;
    }
  }

  .stars .star-wrap:nth-child(2) .star {
    animation-delay: 0.8s;
  }

  .stars .star-wrap:nth-child(3) .star {
    animation-delay: 1.6s;
  }

  .no-square {
    width: 100px;
    height: 100px;
    position: relative;
    margin: 0 auto 22px auto;
  }

  h1 {
    font-weight: bold;
    color: $c-font-clear;
    font-size: 24px;
    margin-bottom: 22px;
  }

  .round-svg {
    width: 240px;
    height: 240px;
    padding: 0px;
    background: #f57c00;
    border-radius: 50%;
    margin: 0 auto 10px auto;
  }

  .round-svg img {
    width: 240px;
    height: 240px;
    padding: 20px;
  }

  .score {
    text-transform: uppercase;
    color: #0288d1;
    font-size: 0.85em;
    display: block;
    letter-spacing: 1px;
    margin-bottom: 17px;
  }

  .score span {
    font-weight: bold;
    font-family: monospace;
    font-size: 1rem;
  }

  p {
    padding: 0 15%;
    line-height: 24px;
    margin-bottom: 17px;
  }

  .buttons {
    width: 100%;
    text-align: center;
    margin-bottom: 23px;

    a {
      @extend %box-radius;

      display: block;
      text-decoration: none;
      text-transform: uppercase;
      line-height: 48px;
      margin: 8px 10% 0 10%;
      height: 48px;
      color: #fff;
      transition: all 0.3s;
    }

    a {
      margin-top: 8px;
    }

    .next {
      font-size: 0.9em;
      background: #3692e7;
    }

    .back {
      font-size: 0.85em;
      background: #e53935f0;
    }

    a:hover {
      filter: brightness(0.9);
    }
  }

  piece {
    width: 100%;
    height: 100%;
  }
}
